package io.renren.modules.sys.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.sys.entity.DepotitemEntity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 单据子表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-22 14:29:36
 */
public interface DepotitemService extends IService<DepotitemEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Integer findByType(String type, Integer projectId, Long mId, String monthTime, Boolean isPrev);

    Double findPriceByType(String type, Integer projectId, Long mId, String monthTime, Boolean isPrev);

    Double buyOrSale(String type, String subType, Long mId, String monthTime, String sumType);

    Integer findGiftByType(String subType, Integer projectId, Long mId, String type);

    Integer findByTypeAndMaterialId(String type, Long mId);

    List<HashMap> findDetailByTypeAndMaterialId(String mid, Integer start, Integer end);
}

